home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 2
/
Atari Mega Archive CD - Volume 2.iso
/
8bit
/
cislib_b
/
tbdef.doc
< prev
next >
Wrap
Text File
|
1995-04-22
|
2KB
|
57 lines
Love TURBO BASIC but BIG DRAWBACK. I
can't use all those nifty LOMEM
routines I used for BASWDG. Bill W.
always TOLD me not to do it, but did
I listen? The Wages of LOMEM Abuse
*sigh*
For a start, I came up with this.
Using it is simple. RUN it, and
VIOLA! Whenever you RESET, the ML
routine installed implements your
choice of values for Screen Color
(POKE 709), Text Color (POKE 710),
Left Margin (POKE 82--I like 0 with
TB, what with all those indents), and
Keyboard Speed (POKE 729,POKE 730.)
Much easier than typing in a bunch of
POKEs, eh?
If you want to change any of those
in mid-session, you can either POKE
the noted 'shadows' directly, or RUN
the program again with new values.
Memory?
Now where to put it? With no little
trepidation, I set it in the MIDDLE
of the OS stack (Page One). As to
whether this is ABSOLUTELY SAFE,
well, don't be redikalous. Of COURSE
it's not! But as these things go,
it's about as safe as it gets. Just
take care not to alter $125-$141
(293-321) where the routine lives.
I've not seen many programs that use
it either, but you never know...So
far, I've had no problems (knock on
veneer!)
Techie Corner
The MAC65 source code is in
RDEFML.XMO. Since who knows WHAT TB
is doing with it's own resetting, I
figgered the safest place to be was
down in the seldom (not never) used
CASINI Reset Vector. This is
specifically designed so that it is
NOT limited to Turbo Basic. ASM it to
disk (or LIST the Basic program to
disk), and you can use it with Atari
Basic, even on an 800.
>>don lebow 70717,720
╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱